SetBinding<T>(FrameworkElement,DependencyProperty,T,Expression<Func<T,Object>>,IValueConverter) Method
In This Topic
Sets the binding if the dependency property has not been set previously and the style of the element don't set the property.
Syntax
'Declaration
<ExtensionAttribute()>
Public Overloads Shared Sub SetBinding(Of )( _
ByVal As FrameworkElement, _
ByVal As DependencyProperty, _
ByVal As , _
ByVal As Expression(Of Func(Of T,Object)), _
ByVal As IValueConverter _
)
'Usage
Dim target As FrameworkElement
Dim dp As DependencyProperty
Dim source As
Dim expr As Expression(Of Func(Of T,Object))
Dim converter As IValueConverter
Extensions.SetBinding(Of T)(target, dp, source, expr, converter)
Parameters
- target
- The target.
- dp
- The dependency property which will be set.
- source
- The source.
- expr
- Expression that returns a property of the source object.
- converter
- The converter that will be applied to the created binding object.
Type Parameters
- T
- Type of the source
See Also